package com.doone.telmarket.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.doone.telmarket.domain.Promotion;
import com.doone.telmarket.infrastructure.dao.PromotionDAO;
@Service("promotionService")
public class PromotionServiceImpl implements PromotionService {

	@Autowired
	private PromotionDAO promotionDAO;
	
	
	public void deleteByPrimaryKey(int key) {
		promotionDAO.deleteByPrimaryKey(key);

	}

	public void insertPromotion(Promotion pro) {
		promotionDAO.insertPromotion(pro);

	}

	public List<Promotion> selectAllPromotion() {
		return promotionDAO.selectAllPromotion();
	}

	public void updatePromotion(Promotion pro) {
		promotionDAO.updatePromotion(pro);
	}

}
